/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race American Indian Potawatomi</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15269 (C-0-T14914-S14915-S14916-S15269-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAmericanIndianPotawatomi()
 * @model extendedMetaData="name='RaceAmericanIndianPotawatomi'"
 * @generated
 */
public enum RaceAmericanIndianPotawatomi implements Enumerator {
	/**
	 * The '<em><b>14787</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_14787_VALUE
	 * @generated
	 * @ordered
	 */
	_14787(0, "_14787", "1478-7"),

	/**
	 * The '<em><b>14795</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_14795_VALUE
	 * @generated
	 * @ordered
	 */
	_14795(1, "_14795", "1479-5"),

	/**
	 * The '<em><b>14803</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_14803_VALUE
	 * @generated
	 * @ordered
	 */
	_14803(2, "_14803", "1480-3"),

	/**
	 * The '<em><b>14811</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_14811_VALUE
	 * @generated
	 * @ordered
	 */
	_14811(3, "_14811", "1481-1"),

	/**
	 * The '<em><b>14829</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_14829_VALUE
	 * @generated
	 * @ordered
	 */
	_14829(4, "_14829", "1482-9"),

	/**
	 * The '<em><b>14837</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_14837_VALUE
	 * @generated
	 * @ordered
	 */
	_14837(5, "_14837", "1483-7"),

	/**
	 * The '<em><b>14845</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_14845_VALUE
	 * @generated
	 * @ordered
	 */
	_14845(6, "_14845", "1484-5"),

	/**
	 * The '<em><b>14852</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_14852_VALUE
	 * @generated
	 * @ordered
	 */
	_14852(7, "_14852", "1485-2");

	/**
	 * The '<em><b>14787</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>14787</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_14787
	 * @model literal="1478-7"
	 * @generated
	 * @ordered
	 */
	public static final int _14787_VALUE = 0;

	/**
	 * The '<em><b>14795</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>14795</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_14795
	 * @model literal="1479-5"
	 * @generated
	 * @ordered
	 */
	public static final int _14795_VALUE = 1;

	/**
	 * The '<em><b>14803</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>14803</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_14803
	 * @model literal="1480-3"
	 * @generated
	 * @ordered
	 */
	public static final int _14803_VALUE = 2;

	/**
	 * The '<em><b>14811</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>14811</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_14811
	 * @model literal="1481-1"
	 * @generated
	 * @ordered
	 */
	public static final int _14811_VALUE = 3;

	/**
	 * The '<em><b>14829</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>14829</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_14829
	 * @model literal="1482-9"
	 * @generated
	 * @ordered
	 */
	public static final int _14829_VALUE = 4;

	/**
	 * The '<em><b>14837</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>14837</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_14837
	 * @model literal="1483-7"
	 * @generated
	 * @ordered
	 */
	public static final int _14837_VALUE = 5;

	/**
	 * The '<em><b>14845</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>14845</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_14845
	 * @model literal="1484-5"
	 * @generated
	 * @ordered
	 */
	public static final int _14845_VALUE = 6;

	/**
	 * The '<em><b>14852</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>14852</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_14852
	 * @model literal="1485-2"
	 * @generated
	 * @ordered
	 */
	public static final int _14852_VALUE = 7;

	/**
	 * An array of all the '<em><b>Race American Indian Potawatomi</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAmericanIndianPotawatomi[] VALUES_ARRAY =
		new RaceAmericanIndianPotawatomi[] {
			_14787,
			_14795,
			_14803,
			_14811,
			_14829,
			_14837,
			_14845,
			_14852,
		};

	/**
	 * A public read-only list of all the '<em><b>Race American Indian Potawatomi</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAmericanIndianPotawatomi> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race American Indian Potawatomi</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianPotawatomi get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianPotawatomi result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Potawatomi</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianPotawatomi getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianPotawatomi result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Potawatomi</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianPotawatomi get(int value) {
		switch (value) {
			case _14787_VALUE: return _14787;
			case _14795_VALUE: return _14795;
			case _14803_VALUE: return _14803;
			case _14811_VALUE: return _14811;
			case _14829_VALUE: return _14829;
			case _14837_VALUE: return _14837;
			case _14845_VALUE: return _14845;
			case _14852_VALUE: return _14852;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAmericanIndianPotawatomi(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAmericanIndianPotawatomi
